<?php
	function smarty_function_test($params){
		//array('参数1'=>‘值’，‘参数2’=>'zhi')
		$width = $params[width];
		$height = $params[height];
		$area = $width*$height;
		return $area;
	}
?>